projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21a9a7b
)
(try_window): Skip scroll-margin check if ZV is visible.
author
Kim F. Storm
<storm@cua.dk>
Sat, 1 Oct 2005 20:42:09 +0000
(20:42 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Sat, 1 Oct 2005 20:42:09 +0000
(20:42 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index d9d2462d31aacdb5677f5a45f1e661209a2e0df0..2dd487574704c136026e8627f64bf8c02dcb3890 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-12848,7
+12848,8
@@
try_window (window, pos, check_margins)
this_scroll_margin *= FRAME_LINE_HEIGHT (it.f);
if ((w->cursor.y < this_scroll_margin
- && CHARPOS (pos) > BEGV)
+ && CHARPOS (pos) > BEGV
+ && IT_CHARPOS (it) < ZV)
/* rms: considering make_cursor_line_fully_visible_p here
seems to give wrong results. We don't want to recenter
when the last line is partly visible, we want to allow